Give grep a chance to find the usages
authorshirayuki <shirayuking@gmail.com>
Wed, 4 Sep 2013 11:56:47 +0000 (20:56 +0900)
committershirayuki <shirayuking@gmail.com>
Thu, 5 Sep 2013 09:29:47 +0000 (18:29 +0900)
Change-Id: I7fc00b055b21bbbbab209a1b1d23f23172862a0b

includes/ProtectionForm.php
includes/logging/LogEventsList.php
includes/specials/SpecialRandompage.php
includes/specials/SpecialRedirect.php

index 061ed2c..f10317a 100644 (file)
@@ -605,6 +605,7 @@ class ProtectionForm {
                if ( $permission == '' ) {
                        return wfMessage( 'protect-default' )->text();
                } else {
+                       // Messages: protect-level-autoconfirmed, protect-level-sysop
                        $msg = wfMessage( "protect-level-{$permission}" );
                        if ( $msg->exists() ) {
                                return $msg->text();
index 2150019..c27b57a 100644 (file)
@@ -172,6 +172,7 @@ class LogEventsList extends ContextSource {
                                $query
                        );
 
+                       // Message: log-show-hide-patrol
                        $links[$type] = $this->msg( "log-show-hide-{$type}" )->rawParams( $link )->escaped();
                        $hiddens .= Html::hidden( "hide_{$type}_log", $val ) . "\n";
                }
index e4f31f4..c94d2b3 100644 (file)
@@ -64,6 +64,7 @@ class RandomPage extends SpecialPage {
 
                if ( is_null( $title ) ) {
                        $this->setHeaders();
+                       // Message: randompage-nopages, randomredirect-nopages
                        $this->getOutput()->addWikiMsg( strtolower( $this->getName() ) . '-nopages',
                                $this->getNsList(), count( $this->namespaces ) );
 
index 2681207..f05dacb 100644 (file)
@@ -166,6 +166,7 @@ class SpecialRedirect extends FormSpecialPage {
                }
                if ( !is_null( $this->mValue ) ) {
                        $this->getOutput()->setStatusCode( 404 );
+                       // Message: redirect-not-exists
                        $msg = $this->getMessagePrefix() . '-not-exists';
                        return Status::newFatal( $msg );
                }
@@ -176,6 +177,7 @@ class SpecialRedirect extends FormSpecialPage {
                $mp = $this->getMessagePrefix();
                $ns = array(
                        // subpage => message
+                       // Messages: redirect-user, redirect-revision, redirect-file
                        'user' => $mp . '-user',
                        'revision' => $mp . '-revision',
                        'file' => $mp . '-file',
@@ -183,7 +185,7 @@ class SpecialRedirect extends FormSpecialPage {
                $a = array();
                $a['type'] = array(
                        'type' => 'select',
-                       'label-message' => $mp . '-lookup',
+                       'label-message' => $mp . '-lookup', // Message: redirect-lookup
                        'options' => array(),
                        'default' => current( array_keys( $ns ) ),
                );
@@ -193,7 +195,7 @@ class SpecialRedirect extends FormSpecialPage {
                }
                $a['value'] = array(
                        'type' => 'text',
-                       'label-message' => $mp . '-value'
+                       'label-message' => $mp . '-value' // Message: redirect-value
                );
                // set the defaults according to the parsed subpage path
                if ( !empty( $this->mType ) ) {
@@ -220,7 +222,8 @@ class SpecialRedirect extends FormSpecialPage {
        protected function alterForm( HTMLForm $form ) {
                /* display summary at top of page */
                $this->outputHeader();
-               /* tweak label on submit button */
+               // tweak label on submit button
+               // Message: redirect-submit
                $form->setSubmitTextMsg( $this->getMessagePrefix() . '-submit' );
                /* submit form every time */
                $form->setMethod( 'get' );